panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.
authorEric Anholt <eric@anholt.net>
Thu, 13 Apr 2017 00:52:56 +0000 (17:52 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:07:24 +0000 (01:07 +0000)
commit7df9fc3fbedacbb97b8959169c73268dfd0c4d7a
treeb63e2c71f22494097eacb19206b85f2ba75e0cd6
parent330fda9bd2e94dd3906e773eb4959e601e5b7254
panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.

If the i2c driver hadn't pobed before the panel driver probes, then
the client would be NULL but we were looking for an ERR_PTR in the
error case.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c